import Vue from 'vue'
import App from '@/App'
import router from '@/router/index'
// import luisa from 'luisa-vue'
// Vue.use(luisa);
// import VueQuillEditor from 'vue-quill-editor'

import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme

// Vue.use(VueQuillEditor, /* { default global options } */)
Vue.config.productionTip = false


// 图片转form对象
Vue.prototype.updateFile = async function (file, paramName, url) {
  // 上传照片
  /* eslint-disable no-undef */
  let config = {
    headers: {
      'Content-Type': 'multipart/form-data',
    },
  }
  let param = new FormData() // 创建form对象
  param.append('filePath', '/img')
  param.append(paramName, file)
  return await axios.post(url, param, config)
}

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
